//
//  LzwAdressSeachCell.m
//  NewHalfsugar
//
//  Created by 刘志武 on 16/1/12.
//  Copyright © 2016年 刘志武. All rights reserved.
//

#import "LzwAdressSeachCell.h"
#import "LzwBaseLable.h"


@interface LzwAdressSeachCell ()

@property (nonatomic, retain) LzwBaseLable *myLable;

@end

@implementation LzwAdressSeachCell

-(void)dealloc{
    [_myLable release];
    [super dealloc];
    
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creats];
    }
    return self;
}

- (void)creats{
    
    self.myLable = [[LzwBaseLable alloc]initWithFrame:CGRectMake((375 - 100) / 2 * WIDTH, 5 * WIDTH, 100 * WIDTH, 30 * WIDTH)];
    self.myLable.layer.masksToBounds = YES;
    self.myLable.layer.cornerRadius = 15 * WIDTH;
    self.myLable.backgroundColor = [UIColor whiteColor];
    self.myLable.textColor = [UIColor lightGrayColor];
    self.myLable.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:self.myLable];
    
    
}



-(void)setStr:(NSString *)str{
    
    if (_str != str) {
        [_str release];
        _str = [str retain];
        
        
    }
    
    
    self.myLable.text = self.str;
}




@end
